﻿using ProtoBuf;
using System;

namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 一个表的预留读写吞吐量信息
    /// </summary>
    [ProtoContract]
    public class ReservedThroughputDetails
    {
        /// <summary>
        /// 
        /// </summary>
        public ReservedThroughputDetails()
        {
            
        }
        public ReservedThroughputDetails(CapacityUnit capacityUnit,Int64 lastIncreaseTime)
        {
            this.CapacityUnit = capacityUnit;
            this.LastIncreaseTime = lastIncreaseTime;
        }
        /// <summary>
        /// 该表的预留读写吞吐量的数值
        /// </summary>
        [ProtoMember(1, IsRequired = true, Name = "capacity_unit")]
        public CapacityUnit CapacityUnit { get; set; }
        /// <summary>
        /// 最近一次上调该表的预留读写吞吐量设置的时间，使用UTC秒数表示
        /// </summary>
        [ProtoMember(2, IsRequired = true, Name = "last_increase_time")]
        public Int64 LastIncreaseTime { get; set; }
        /// <summary>
        /// 最近一次下调该表的预留读写吞吐量设置的时间，使用UTC秒数表示
        /// </summary>
        [ProtoMember(3, Name = "last_decrease_time")]
        public Int64 LstDecreaseTime { get; set; }
        /// <summary>
        /// 本个自然日内已下调该表的预留读写吞吐量设置的次数
        /// </summary>
        [ProtoMember(4, IsRequired = true, Name = "number_of_decreases_today")]
        public Int32 NumberOfDecreasesToday { get; set; }
    }
}